/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2022-06-27
 * Time: 7:18
 */
public class Method {

    public static void sum(long a,long b){
        System.out.println(a+" = "+b+" = "+(a+b));

        //调用doSome方法
        Method.doSome();
    }

    //主方法
    public static void main(String[] args) {

        //编译错误：实参和形参的类型不是对应相同的
        //Method.sum(true,false);

        //可以,自动类型转换
        Method.sum(10,20);

        //可以
        Method.sum(10L,30L);

        //编译错误：参数类型不是对应相同的
        Method.sum((long)3.0,20);
    }
    public static void doSome(){
        System.out.println("doSome!");
    }
}
